{include theme=com/head}

<section class="productdetail" bosscms="productdetail" group>
  <article>
    {if:(group.imgs)}
    <div class="photo">
      <span {if:(count(group.imgs)>1)}class="more"{/if}>
        <a href="{group.imgs.0}" title="{group.name}" target="_blank">
          <img src="{group.imgs.0|thumb=group.width,group.height}" alt="{group.name}" />
        </a>
      </span>
	    {if:(count(group.imgs)>1)}
      <div class="images">
        <ul>
		      {foreach data=group.imgs key=$k}
          <li class="{if:(!$k)}on{/if}">
            <span>
              <a href="{$v}" title="{group.name}" target="_blank">
                <img src="{$v|thumb=group.width,group.height}" alt="{group.name}" />
              </a>
            </span>
          </li>
		      {/foreach}
        </ul>
      </div>
	    {/if}
	  </div>
	  {/if}
    <div class="text">
      <h1>{group.name}</h1>
      <div class="top">
        <b>{config.group_time}</b>
        <i>{group.mtime|date='Y-m-d H:i:s',###}</i>
        <b>{config.group_notice}</b>
        <i><notice type="{group.type}" id="{group.id}">{group.notice}</notice></i>
        {if:(config.member_open)}
        <i class="fa fa-star{if:(!group.collect)}-o{/if}">
          <a collect="{group.type}_{group.id}" href="javascript:;">{config.group_collect}</a>
        </i>
        {/if}
      </div>
      <p>{group.text}</p>
      <div class="param">
        {foreach data=group.complex}
        <dl>
          <dt><span>{$v.title}</span></dt>
          <dd><span>{$v.value}</span></dd>
        </dl>
		    {/foreach}
      </div>
	    {if:(group.price)}
      <h2><b>{$productdetail.price}</b><span>{group.price}</span></h2>
	    {/if}
    </div>
  </article>
  <article>
    <div class="content">
      <ul>
        {foreach data=group.contents key=$k}
        <li {if:(!$k)}class="on"{/if}><h4>{$v.title}</h4></li>
        {/foreach}
      </ul>
      {foreach data=group.contents key=$k}
      <aside {if:(!$k)}class="on"{/if}>{$v.content}</aside>
	    {/foreach}
      {if:(group.tag)}
      <div class="tag">
        {foreach data=group.tag}
        <a href="{$v.url}" title="{$v.title}">{$v.title}</a>
        {/foreach}
      </div>
      {/if}
      {both class=html id=group.id items=items.id}{/both}
    </div>
  </article>
  {comment class=html model=group.type gid=group.id}
  <article>
    <div class="comment">{$html}</div>
  </article>
  {/comment}
</section>

{include theme=com/foot}